import request from '@/utils/request'

// 查询景区模块列表
export function listScenicSpots(query) {
  return request({
    url: '/system/scenicSpots/list',
    method: 'get',
    params: query
  })
}

// 查询景区模块详细
export function getScenicSpots(scenicSpotid) {
  return request({
    url: '/system/scenicSpots/' + scenicSpotid,
    method: 'get'
  })
}

// 新增景区模块
export function addScenicSpots(data) {
  return request({
    url: '/system/scenicSpots',
    method: 'post',
    data: data
  })
}

// 修改景区模块
export function updateScenicSpots(data) {
  return request({
    url: '/system/scenicSpots',
    method: 'put',
    data: data
  })
}

// 删除景区模块
export function delScenicSpots(scenicSpotid) {
  return request({
    url: '/system/scenicSpots/' + scenicSpotid,
    method: 'delete'
  })
}
